package com.bw.ivideoproject

import android.app.Application
import androidx.room.Room
import com.bw.ivideoproject.db.database.HistoryDatabase

class App : Application() {

    override fun onCreate() {
        super.onCreate()
        db = Room.databaseBuilder(this, HistoryDatabase::class.java, "history.db").build()
    }

    companion object{
        private lateinit var db:HistoryDatabase

        fun getDatabase():HistoryDatabase{
            return db
        }
    }
}